const webpack = require('webpack');
const path = require('path');


module.exports = {
	entry: {
		vendor: [
			'react',
			'react-dom',
			'mobx',
			'mobx-react',
			'mobx-react-router',
			'react-router',
			'react-router-dom',
			'moment',
			'moment/locale/zh-cn',
			'jquery',
			'lodash',
			'axios',
			'js-cookie',
			'numeral'],
	},

	output: {
		path: path.join(__dirname, 'dll'),
		filename: `[name].js`,
		// filename: `[name].[hash:10].js`,
		library: '[name]',
	},

	plugins: [
		new webpack.DllPlugin({
			path: path.join(__dirname, 'dll', 'manifest.json'),
			name: "[name]",
		}),
	]
};
